import http from "@/plugins/axios"

export interface LoginDto {
  username: string;
  password: string;
}

export interface LoginVo {
  token: string;
}

export function login(data: LoginDto) {
  return http<LoginVo>({
    method: 'POST',
    url: '/sys/login',
    data: data,
    fullResponse: true
  })
}
